package com.bl.pet.service;

import com.bl.basic.util.PageList;
import com.bl.pet.domain.SearchMasterMsg;
import com.bl.basic.service.IBaseService;
import com.bl.pet.dto.AcceptDto;
import com.bl.pet.query.SearchMasterMsgQuery;
import com.bl.user.domain.Logininfo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Bao
 * @since 2022-08-09
 */
public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    /**
     * 发布寻主消息
     * @param smm
     * @param id 当前登录人
     */
    void publish(SearchMasterMsg smm, Long id);


    PageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, Long id);


    PageList<SearchMasterMsg> user(SearchMasterMsgQuery query, Long id);

    /**
     *  拒单
     * @param id
     * @return
     */
    void reject(Long id);

    /**
     *  接单
     * @param dto
     * @param id
     */
    void accept(AcceptDto dto, Long id);




}
